﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default5.aspx.cs" Inherits="UserControl_Default5" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" href="../js/jquery-treeview/jquery.treeview.css" rel="Stylesheet" />

    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>

    <script type="text/javascript" src="../js/jquery-treeview/jquery.treeview.min.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            //            $('#divTree').load("testHandler.ashx");
            $.ajax({
                type: "GET",
                url: 'testHandler.ashx',
                success: function(msg) {
                    $('#divTree').append(msg);
                }
            });
            $("#doit").click(function() {
                $("#ulGroup").treeview({
                    persist: "fast",
                    collapsed: true,
                    unique: false
                });
            });
            $("#doit").click();
        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <input type="button" id="doit" value="doit" />
    <div id="divTree" class="filetree">
    </div>
    </form>
</body>
</html>
